home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / demo3.zoo / demo / misc / startup.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-24  |  1.0 KB  |  35 lines

  1. /*                        Copyright (c) 1987 Bellcore
  2.  *                            All Rights Reserved
  3.  *       Permission is granted to copy or use this program, EXCEPT that it
  4.  *       may not be sold for profit, the copyright notice must be reproduced
  5.  *       on copies, and credit should be given to Bellcore where it is due.
  6.  *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  */
  8. /*    $Header: startup.c,v 4.2 88/06/22 14:38:09 bianchi Exp $
  9.     $Source: /tmp/mgrsrc/demo/misc/RCS/startup.c,v $
  10. */
  11. static char    RCSid_[] = "$Source: /tmp/mgrsrc/demo/misc/RCS/startup.c,v $$Revision: 4.2 $";
  12.  
  13. /* generate a startup file from existing window configuration */
  14.  
  15. #include "term.h"
  16.  
  17.  
  18. main(argc,argv)
  19. int argc;
  20. char **argv;
  21.    {
  22.    register int i;
  23.    int count;
  24.    struct window_data data;
  25.  
  26.    ckmgrterm( *argv );
  27.  
  28.    m_setup(0);
  29.    while( get_eachwin( &data ) )
  30.       if (data.num == 0)
  31.          printf("window %d\t%d\t%d\t%d\n",
  32.             data.x, data.y, data.w, data.h);
  33.    printf("done\n");
  34.    } 
  35.